/**
 * Created by jude on 2016/1/9.
 */
module.exports = {
    "appenders": [
        { // 跟express配合输出web请求url日志
            "category": "console",
            "type" : "console"
        },
        { // 详细日志,主体日志都在这里,使用file类型,80MB一本,保存10本.
            "category": "log_info",
            "type": "file",
            "filename": "logs/log_info/info.log",
            "maxLogSize": 83886080, // 80MB
            "backups": 10   // 最多保存10文件
        },
        { // 异常信息,数量不会特别多,使用datefile格式.
            "category": "log_error",
            "type": "dateFile",
            "filename": "logs/log_error/error",
            "pattern": "-yyyy-MM-dd.log", // 文件后缀生产规则
            "alwaysIncludePattern": true  // 是否保留后缀
        },
        { // 用于输出一些统计信息,统计信息数量固定,不依赖于用户量变化,且较少.
            "category": "log_stat",
            "type": "dateFile",
            "filename": "logs/log_stat/stat",
            "pattern": "-yyyy-MM-dd.log",
            "alwaysIncludePattern": true
        },
        { // 记录一些需要人工处理业务,日志量不会很多,使用datefile格式.
            "category": "log_todo",
            "type": "dateFile",
            "filename": "logs/log_todo/todo",
            "pattern": "-yyyy-MM-dd.log",
            "alwaysIncludePattern": true
        }
    ],
    "replaceConsole": true,
    "levels":
    {
        "log_info": "ALL",
        "log_stat": "ALL",
        "log_error": "ALL",
        "log_todo": "ALL"
    }
};